package io.renren.sf.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.sf.dao.RecommendSteleCalligraphyDao;
import io.renren.sf.entity.RecommendSteleCalligraphyEntity;
import io.renren.sf.service.RecommendSteleCalligraphyService;


@Service("recommendSteleCalligraphyService")
public class RecommendSteleCalligraphyServiceImpl extends ServiceImpl<RecommendSteleCalligraphyDao, RecommendSteleCalligraphyEntity> implements RecommendSteleCalligraphyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RecommendSteleCalligraphyEntity> page = this.page(
                new Query<RecommendSteleCalligraphyEntity>().getPage(params),
                new QueryWrapper<RecommendSteleCalligraphyEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int findSorderMax(Long rid) {
        return this.baseMapper.findSorderMax(rid);
    }

}